package com.mingqijia.gassafety.db.mapper;

import com.mingqijia.gassafety.db.entity.Supplier;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;
import java.util.List;

/**
 * <p>
 * 供应商 Mapper 接口
 * </p>
 *
 * @author zhangfei
 * @since 2022-06-07
 */
@Repository
@Mapper
public interface SupplierMapper extends BaseMapper<Supplier> {

    List<Supplier> selectBySupplierInfo(@Param("supplierName") String supplierName,@Param("forShort") String forShort,
                                        @Param("supplierCode")Integer supplierCode,@Param("spId") String spId
    ,@Param("id") Long id );

    List<Supplier> selectListInfo(@Param("spId")String spId,  @Param("supplierName")String supplierName);
}
